Resource
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Manual: Resources ↗
It breaks data into individual packets on the transmitting end and reassembles them in order on the receiving end, while performing integrity checks. It can also automatically compress data.
Contents
Usage
Resources are very simple to use. RNS only requires a few lines of code to transfer any amount of data:
# Sender
resource = RNS.Resource(data, link, callback=my_callback)
# Receiver
def resource_concluded(resource):
data = resource.data.read()
For a more comprehensive use case, see the Filetransfer example in the manual.
See also
Reticulum concepts
Announce • Blackhole • Buffer • Channel • Destination • Discovery • Identity • Instance • Interface • Interface Access Code (IFAC) • Link • Network identity • Node • Packet • Path • Propagation node • Resource • Stamp • Transport node
Resource